package com.yudean.esb.dao.erp;

import com.yudean.esb.domain.erp.ErpIdsInvTransactionInt;
import com.yudean.esb.mapper.erp.ErpIdsInvTransactionIntMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
@Scope("prototype")
public class ErpIdsInvTransactionIntDao {

    @Resource
    public ErpIdsInvTransactionIntMapper erpIdsInvTransactionIntMapper;

    public int insertSelective(ErpIdsInvTransactionInt record) {
        return erpIdsInvTransactionIntMapper.insertSelective(record);
    }

    public int batchInsertErpIdsInvTransactionInt(List<ErpIdsInvTransactionInt> erpIdsInvTransactionIntList) {
        return erpIdsInvTransactionIntMapper.batchInsertErpIdsInvTransactionInt(erpIdsInvTransactionIntList);
    }

    public int deleteInvTransactionByControlId(long controlId) {
        return erpIdsInvTransactionIntMapper.deleteInvTransactionByControlId(controlId);
    }
}